package cn.com.ericsson;
/**
 * 
 */


import java.io.BufferedReader;
import java.io.InputStream;

/**
 * @author edongxi
 *
 */
public class Log2txt {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Runtime rn = Runtime.getRuntime();  
	       Process p = null;  
	       try {  
	           //String cddir = "cmd.exe /k start cd C:\\log";
	           String qparser ="cmd.exe /c start qparser_lpm.bat C:\\Users\\essnxxg\\folder qparser_filter.txt";
	           //String command1 = "qparser C:\\log\\08-13.11-02_TM1_lul_wul_0.5_good_1.isf qparser_filter.txt";  
	           //p = rn.exec(cddir);
	           p = rn.exec(qparser);
	       } catch (Exception e) {  
	           System.out.println("Error win exec ");  
	       }  
	}
	
	public static void log2txt(String logfolder){
		
		Runtime rn = Runtime.getRuntime();  
	       Process p = null;  
	       try {  
	           String qparser ="cmd.exe /c start qparser.bat "+ logfolder +" qparser_filter.txt";
	           p = rn.exec(qparser);
	       } catch (Exception e) {  
	           System.out.println("Error in log2txt ");  
	       }  
		
	}

}
